﻿using B.S.DataBase.MyProject.Domain;
using Microsoft.EntityFrameworkCore;

namespace B.S.DataBase.MyProject.Infrastructure
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class SDbContext : DbContext
    {
        public SDbContext(DbContextOptions options) : base(options)
        {
        }

        public DbSet<User> User { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<RoleUser> RoleUsers { get; set; }
        public DbSet<Menu>  Menus { get; set; }
        public DbSet<RoleMenu>   RoleMenus { get; set; }
        public DbSet<LeaveApplications>    LeaveApplications { get; set; }
        public DbSet<Record>     Records { get; set; }
        

    }
}


